home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Interfaces / Universal Interfaces / SegLoad.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-30  |  1.9 KB  |  86 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SegLoad.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __SEGLOAD__
  13. #define __SEGLOAD__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. /*    #include <ConditionalMacros.h>                                */
  18. /*    #include <MixedMode.h>                                        */
  19. /*        #include <Traps.h>                                        */
  20. #endif
  21.  
  22. enum  {
  23.     appOpen                        = 0,                            /*Open the Document (s)*/
  24.     appPrint                    = 1                                /*Print the Document (s)*/
  25. };
  26.  
  27. #if defined(powerc) || defined (__powerc)
  28. #pragma options align=mac68k
  29. #endif
  30. struct AppFile {
  31.     short                        vRefNum;
  32.     OSType                        fType;
  33.     short                        versNum;                        /*versNum in high byte*/
  34.     Str255                        fName;
  35. };
  36. #if defined(powerc) || defined(__powerc)
  37. #pragma options align=reset
  38. #endif
  39.  
  40. typedef struct AppFile AppFile;
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45.  
  46.  
  47. /*
  48.     Because PowerPC applications don’t have segments, this
  49.     UnloadSeg is unsupported for PowerPC.
  50. */
  51.  
  52. #if !defined(powerc) && !defined(__powerc)
  53. extern pascal void UnloadSeg(void *routineAddr)
  54.  ONEWORDINLINE(0xA9F1);
  55. #else
  56. #define UnloadSeg(x)
  57.  
  58. #endif
  59.  
  60.  
  61. /*
  62.     CountAppFiles, GetAppFiles, ClrAppFiles, GetAppParms, and 
  63.     getappparms are obsolete. They are still supported for 68K 
  64.     apps (if OBSOLETE is defined), but they are not supported 
  65.     for PowerPC apps. Use AppleEvents to determine which files
  66.     are to be opened or printed from the Finder.
  67. */
  68.  
  69. #if defined(OBSOLETE) && !defined(powerc) && !defined(__powerc)
  70. extern pascal void CountAppFiles(short *message, short *count);
  71. extern pascal void GetAppFiles(short index, AppFile *theFile);
  72. extern pascal void ClrAppFiles(short index);
  73. extern pascal void GetAppParms(Str255 apName, short *apRefNum, Handle *apParam)
  74.  ONEWORDINLINE(0xA9F5);
  75. extern void getappparms(char *apName, short *apRefNum, Handle *apParam);
  76. #endif
  77.  
  78. extern pascal void ExitToShell(void)
  79.  ONEWORDINLINE(0xA9F4);
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83.  
  84. #endif
  85.  
  86.